package com.czk.repository;

import com.czk.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/11/11 21:02
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    /**
     * 通过医院编号和科室编号进行查询
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
